#include using namespace std; void main() { char s[1000]; cin.getline(s, 1000); cout << s << endl; char* p = s; while(*p != '\0') { cout << *p; p++; //walking the pointer } cout << endl; p = s + strlen(s) - 1; while(p != s) { cout << *p; p--; //walking the pointer } cout << *p << endl; cout << "------------------" << endl; cout << p << endl; int a[100] = {1,2,3}; cout << a << endl; cout << *a << endl; int* p2 = a; cout << p2[1] << endl; cout << *(p2 + 1) << endl; int x = 9; p2 = &x; // & - the address of the next variable cout << p2 << endl; cout << *p2 << endl; cout << &*&x << endl; }